<?php // asp2php (vbscript) converted on Wed Aug 05 13:49:57 2009
 $CODEPAGE="65001";?>
<!--#include file="config.php"-->
<?php 
//mode 1角色 2物品ID
//itemID 物品ID
//server 服务器名
//sname 角色名
$sserver=${"server"};
$sname=${"sname"};
$itemID=${"itemID"};

switch (${"mode"}) {
	case "1":
		$p=$ArmoryServerUrl[$langcode]."character-sheet.xml?r=".$sserver."&n=".$sname;
		break;
	case "2":
		$p=$ArmoryServerUrl[$langcode]."item-tooltip.xml?i=".$itemID;
		break;
	case "3":
		$p="http://db.duowan.com/wow/gi-".$itemID.".html";
		print $itemID."#";
		break;
	default:

		print "<h1>Error!!</h1>";
		break;
} 
print GetArmory($p);
flush();


function GetArmory($url) {
	extract($GLOBALS);

	// $Retrieval is of type "Microsoft.XMLHTTP"
	$With$Retrieval;
	$Open"Get"  $url  $False
	$Send;
	$function_ret=->$ResponseBody;
	return $function_ret;
} 
$Retrieval=null;


%>

